package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysProjectApplicantMapper;
import com.ruoyi.system.domain.SysProjectApplicant;
import com.ruoyi.system.service.ISysProjectApplicantService;

/**
 * 申报人项目映射Service业务层处理
 * 
 * @author riddou
 * @date 2022-04-15
 */
@Service
public class SysProjectApplicantServiceImpl implements ISysProjectApplicantService 
{
    @Autowired
    private SysProjectApplicantMapper sysProjectApplicantMapper;

    /**
     * 查询申报人项目映射
     * 
     * @param projectId 申报人项目映射主键
     * @return 申报人项目映射
     */
    @Override
    public SysProjectApplicant selectSysProjectApplicantByProjectId(Long projectId)
    {
        return sysProjectApplicantMapper.selectSysProjectApplicantByProjectId(projectId);
    }

    /**
     * 查询申报人项目映射列表
     * 
     * @param sysProjectApplicant 申报人项目映射
     * @return 申报人项目映射
     */
    @Override
    public List<SysProjectApplicant> selectSysProjectApplicantList(SysProjectApplicant sysProjectApplicant)
    {
        return sysProjectApplicantMapper.selectSysProjectApplicantList(sysProjectApplicant);
    }

    /**
     * 新增申报人项目映射
     * 
     * @param sysProjectApplicant 申报人项目映射
     * @return 结果
     */
    @Override
    public int insertSysProjectApplicant(SysProjectApplicant sysProjectApplicant)
    {
        return sysProjectApplicantMapper.insertSysProjectApplicant(sysProjectApplicant);
    }

    /**
     * 修改申报人项目映射
     * 
     * @param sysProjectApplicant 申报人项目映射
     * @return 结果
     */
    @Override
    public int updateSysProjectApplicant(SysProjectApplicant sysProjectApplicant)
    {
        return sysProjectApplicantMapper.updateSysProjectApplicant(sysProjectApplicant);
    }

    /**
     * 批量删除申报人项目映射
     * 
     * @param projectIds 需要删除的申报人项目映射主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectApplicantByProjectIds(Long[] projectIds)
    {
        return sysProjectApplicantMapper.deleteSysProjectApplicantByProjectIds(projectIds);
    }

    /**
     * 删除申报人项目映射信息
     * 
     * @param projectId 申报人项目映射主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectApplicantByProjectId(Long projectId)
    {
        return sysProjectApplicantMapper.deleteSysProjectApplicantByProjectId(projectId);
    }
}
